<? include ("../init.php") ?>
<? include ("../header.php") ?>
<? include ("../menu.php") ?>
<? include ("submenu.php") ?>

<div id = "body">

<h1><?_l('Export')?></h1>

<!--<a href = "form.php" class = "add"><img src = "<?=ADMIN?>/images/icon-add.png">&nbsp;&nbsp;&nbsp;<?_l('Add Member')?></a>-->

<div class = "clear"></div>
  
  <div style="padding:30px 0 0 120px;">
    <input type="button" class="btn" value=":: Export ::" id="export" />
  </div>
</div>

<? include "../footer.php" ?>

<script>
  $(document).ready(function(){
    $('#export').live('click',function(){
      $.ajax({
        url: "export_query.php",
        success: function(msg){
          //if(trim(msg)!='complete')
          //{
          //  alert(msg);
          //}
          //else
          //{
            //alert(msg);
            window.location = "download_csv.php";
          //}
        }
      });
    });
  });
</script>